This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Mar 16, 2011, 10:30 PM
122 Posts

Re: is xp:dominoView a type of dataContext?

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.1
  • Role: Developer
  • Tags: dataContext
  • Replies: 2
I think the problem you may be getting is the data type for each row in the repeat. For your dataContext, you're returning a collection of NotesDocuments. From the view, you're returning NotesXSPViewEntries. That could cause a problem.
 
I'm not sure if this will work, but what happens if you return a NotesViewEntry collection instead of a NotesDocumentCollection? 
 
As I say, it may not work, because they're still slightly different data types returned. But as they're more similar, it may work. 
Mar 17, 2011, 12:13 PM
8 Posts
Re: is xp:dominoView a type of dataContext?
Hi Paul,
 
Actually that's not the issue. While "#{dominoView}" or "#{javascript:dominoView}" is returning the collection (view entry collection), this variable (dominoView) if mixed with a little bit of more code, just returns the object lotus.domino.local.View (not a collection).
 
So I am not sure why the same variable returns the view entry collection in one case and the view object in the other case.

When it returns the collection, it is after applying all filters on the xp:dominoView data (like categoryFilter, keys etc.). But when it gives just the view object, I then have to do getAllEntriesByKey() to do what was otherwise given as a property of the xp:dominoView.
 
Hope I clarified the issue.

Thanks,
Rajeev.
 
 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal